<?php 
//create a salt for storing the password with crypt
function createSalt()
{
	$charPool='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./';
	$salt='$2y$14$';
	mt_srand();
	for($i=0;$i<22;$i++)
	{
		$salt.=$charPool[mt_rand(0,63)];
	}
	return $salt;
}
?>